Skip to content

Conversation

@SferaDev
Copy link
Owner

This is an autogenerated PR to update the OpenAPI spec with the latest merged changes.

Before merging these changes, please review the update and test it out.

@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2025

🦋 Changeset detected

Latest commit: 64a3624

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
keycloak-api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
openapi-clients Error Error Nov 14, 2025 0:41am

Comment on lines +2027 to +2028
on?: void;
["reset-on"]?: void;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
on?: void;
["reset-on"]?: void;
on?: unknown;
["reset-on"]?: unknown;

The on and reset-on properties in WorkflowRepresentation are typed as void, which means they cannot hold any meaningful data and can only be undefined.

View Details

Analysis

WorkflowRepresentation properties typed as void prevent workflow configuration

What fails: WorkflowRepresentation.on and WorkflowRepresentation["reset-on"] are typed as void instead of unknown, preventing assignment of workflow event configuration values

How to reproduce:

import { WorkflowRepresentation } from './packages/keycloak-api/src/admin/schemas';

const workflow: WorkflowRepresentation = {
  id: "test",
  on: "some-event", // TypeScript error: Type 'string' is not assignable to type 'void'
  "reset-on": ["event1", "event2"] // TypeScript error: Type 'string[]' is not assignable to type 'void'
};

Result: TypeScript compilation fails with "Type 'string' is not assignable to type 'void'" errors

Expected: Properties should accept any values since the Keycloak OpenAPI spec defines them as {} (empty object/any type), similar to how other event properties like onValues and onEventsReset are properly typed as string[]

@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 3b4d27c to c2048d4 Compare November 13, 2025 11:33
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from c2048d4 to a859554 Compare November 13, 2025 12:37
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from a859554 to e7f8eba Compare November 13, 2025 13:35
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from e7f8eba to 5dd006d Compare November 13, 2025 14:31
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 5dd006d to 774e499 Compare November 13, 2025 15:31
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 774e499 to e4a6630 Compare November 13, 2025 16:34
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from e4a6630 to 0bcebf8 Compare November 13, 2025 17:32
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 0bcebf8 to 14f7ef1 Compare November 13, 2025 18:35
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 14f7ef1 to bff1e1d Compare November 13, 2025 19:27
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from bff1e1d to 781f0dc Compare November 13, 2025 20:32
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 781f0dc to 1244786 Compare November 13, 2025 21:28
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 1244786 to 2717ace Compare November 13, 2025 22:31
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 2717ace to 310b32c Compare November 13, 2025 23:29
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 310b32c to 29e947e Compare November 14, 2025 00:40
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 29e947e to 64a3624 Compare November 14, 2025 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants